package com.gyg.client;

import com.gyg.returns.RespEntity;
import com.gyg.returns.RespTable;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "cloudSpaceClient", url = "${cloud.box.url}")
public interface CloudSpaceClient {

    /**
     * 用户容量总览
     * @param page
     * @param limit
     * @param username
     * @return
     */
    @GetMapping("/cloud-space/user")
    RespTable cloudSpaceUser(@RequestParam(value = "page", required = true) Integer page,
                             @RequestParam(value = "limit", required = true) Integer limit,
                             @RequestParam(value = "username", required = false) String username);

    /**
     * 文件容量总览
     * @return
     */
    @GetMapping("/cloud-space/file")
    RespEntity cloudSpaceFileList();

    /**
     * 云盘容量总览
     * @return
     */
    @GetMapping("/cloud-space/cloud")
    RespEntity spaceCloud();
}
